package org.shoukaiseki.ddcs.actuator.config;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * org.shoukaiseki.ddcs.actuator.config.ConfiguratorTable <br>
 * 配置器
 * @author 蒋カイセキ    Japan-Tokyo  2018-07-23 21:10:38<br>
 * ブログ http://shoukaiseki.blog.163.com/<br>
 * E-メール jiang28555@Gmail.com<br>
 **/

public class ConfiguratorTable {

    /**
     * 业务表名
     */
    private String tablename;

    /**
     * 字段配置器
     */
    private Map<String,ConfiguratorField> fieldconfig=Maps.newHashMap();

    public ConfiguratorTable(String tablename){
        this.tablename=tablename;

        init();
    }

    public void init()  {
        ConfiguratorField cf=new ConfiguratorField("userid");
        cf.setSortbyAsc(true);
        fieldconfig.put("userid",cf);


    }

    public Map<String, ConfiguratorField> getFieldconfig() {
        return fieldconfig;
    }

    public String getTablename() {
        return tablename;


    }


}
